package com.forgenet.game;

import com.forgenet.game.config.GameConfig;
import com.sparrow.common.util.PropertiesUtil;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class GameMain {
    private static final Logger logger = LoggerFactory.getLogger(GameMain.class);

    public static void main(String[] args) {
        PropertiesUtil.load("server.properties");
        AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
        context.register(GameConfig.class);
        context.refresh();
        logger.info("游戏服启动");
    }
}